
import java.util.Arrays;

public class BoxedUtil {

    private BoxedUtil() {
        // Prevent instantiation
    }

    public static Integer boxed(int value) {
        return value;
    }
    public static Long boxed(long value) {
        return value;
    }
    public static Integer[] boxed(int[] array) {
        return Arrays.stream(array).boxed().toArray(Integer[]::new);
    }
    public static Long[] boxed(long[] array)
    {
        return Arrays.stream(array).boxed().toArray(Long[]::new);
    }

    public static int[] unboxed(Integer[] array) {
        return Arrays.stream(array).mapToInt(Integer::intValue).toArray();
    }
    public static long[] unboxed(Long[] array) {
        return Arrays.stream(array).mapToLong(Long::longValue).toArray();
    }
}
